package com.capgemini.remind.service;

import com.capgemini.core.PageList;
import com.capgemini.remind.mapper.RemindMapper;
import com.capgemini.remind.pojo.Remind;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author
 * @date
 */
@Service
@Transactional
public class RemindService {
	public final Logger log = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private RemindMapper remindMapper;

	public void queryPage(final PageList<Remind> pageList) {
		pageList.setItems(remindMapper.queryPage(pageList));
	}


	public List<Map> getRemindReportForNotSend(Map map){
		return remindMapper.getRemindReportForNotSend(map);
	}

	public List<Map> getRemindReportForSend(Map map){
		return remindMapper.getRemindReportForSend(map);
	}
}
